package top.tenebrous.yzl.context;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import top.tenebrous.yzl.enums.FailCodeEnum;

/**
 * @Description:
 * @Project: jestic-server
 * @Package: com.tenebrous.jestic.context
 * @Author: zhangya
 * @CreateTime: 2023-06-30  16:58
 * @Version: 1.0.0
 */
@Slf4j
@Data
public class Response extends JesticTask {

    private Integer code;

    private String message;

    public void buildResponseError(FailCodeEnum fail) {
        this.code= fail.getCode();
        this.message = fail.getZhDesc();
        log.info("JesticSechubCheckHandler.handler.end:[{}]", fail.getEnDesc());
    }

}
